package com.ksd.modules.channel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ksd.commons.AbstractTimeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xk_channel")
@SuperBuilder(toBuilder = true)
@ApiModel(value = "AdminChannel", description = "栏目管理")
public class AdminChannel extends AbstractTimeEntity {
    @ApiModelProperty("栏目标题")
    private String title;
    @ApiModelProperty("排序")
    private Integer sorted;
    @ApiModelProperty("是否显示热 0不展示 1展示")
    private Integer hotFlag;
    @ApiModelProperty("是否展示最新 0 不展示 1展示")
    private Integer newFlag;
    @ApiModelProperty("栏目描述")
    private String description;
    @ApiModelProperty("栏目图标")
    private String icon;
    @ApiModelProperty("父ID")
    private Long parentId;
    @ApiModelProperty("访问地址")
    private String url;
    @ApiModelProperty("空间访问地址")
    private String qurl;
    @ApiModelProperty("空间地址名称")
    private String qname;
    @ApiModelProperty("访问地址")
    private Integer qFlag;

    public static class Columns {
        public static String IS_DELETED = "is_deleted";
        public static String STATUS = "status";
        public static String HOT_FLAG = "hot_flag";
        public static String NEW_FLAG = "new_flag";
    }
}
